namespace UnitTests.Domain
{
	using Core.Infrastructure;
	using Microsoft.Practices.Unity;

	internal class StubDomainSessionFactory : IDomainSessionFactory
	{
		public StubDomainSessionFactory(IUnityContainer container)
		{			
			this.Container = container;
		}

		public IUnityContainer Container
		{
			get;
			private set;
		}

		public DomainSession Create()
		{
			return this.Container.Resolve<DomainSession>();
		}
	}
}